package com.hdoit.apollo.logical.cargo.model;

import java.util.Date;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Entity;
import javax.persistence.Transient;

import org.apache.ibatis.type.Alias;

import com.tennetcn.data.message.ModelBase;
/**
 * @author      humaoshu
 * @email       
 * @createtime  2018年03月31日 14:59:36
 * @comment
 */
@Entity
@Table(name="cargo_cargo")
@Alias("cargo")
public class Cargo extends ModelBase{
    //id
    @Id
    @Column(name="cargoId")
    private String cargoId;

    //编号
    @Column(name="cargoNo")
    private String cargoNo;

    //商品名称
    @Column(name="cargoName")
    private String cargoName;

    //商品描述
    @Column(name="describes")
    private String describes;

    //货品状态
    @Column(name="cargoState")
    private String cargoState;

    //物品分类
    @Column(name="categoryName")
    private String categoryName;
    
    //主单位
    @Column(name="unit")
    private String unit;
    
    //副单位1
    @Column(name="viceFirstUnit")
    private String viceFirstUnit;
    
    //副单位1比率
    @Column(name="firstRatio")
    private Double firstRatio;
    
    //副单位2
    @Column(name="viceSecondUnit")
    private String viceSecondUnit;
    
	//副单位1比率
    @Column(name="secondRatio")
    private Double secondRatio;
    
    @Column(name="cargoType")
    private String  cargoType;
    

	//是否库存预警
    @Column(name="isStockWarning")
    private String isStockWarning;


    //最低安全库存
    @Column(name="lowSafetyStock")
    private Integer lowSafetyStock;

    //最高安全库存
    @Column(name="heightSafetyStock")
    private Integer heightSafetyStock;

    //隐藏微店货品销售价
    @Column(name="isHideSalePrice")
    private String isHideSalePrice;


    //隐藏微店货品库存
    @Column(name="isHideStock")
    private String isHideStock;


    //隐藏微店货品销量
    @Column(name="isHideSaleVolume")
    private String isHideSaleVolume;



    //门店id
    @Column(name="shopId")
    private String shopId;

    //创建时间
    @Column(name="createDate")
    private Date createDate;

    //创建人id
    @Column(name="createUserId")
    private String createUserId;

    //创建人名称
    @Column(name="createUserName")
    private String createUserName;

    //修改时间
    @Column(name="modifyDate")
    private Date modifyDate;

    //修改人id
    @Column(name="modifyUserId")
    private String modifyUserId;

    //修改人名称
    @Column(name="modifyUserName")
    private String modifyUserName;

    //删除标记
    @Column(name="deleteMark")
    private Integer deleteMark;
    
    //备注
    @Column(name="comment")
    private String comment;
    
    //库存数量
    @Transient
    private Double stockNum;
    
    //最高价
    @Transient
    private Double minSale;
    
    //最低价
    @Transient
    private Double maxSale;
    
    //销量
    @Transient
    private Double salesVolume;
    
    //销售金额，账本使用
    @Transient
    private Double  salesAmount;
    
    //账本使用
    @Transient
    private String customerName;
    
    //账本使用
    @Transient
    private String customerTel;
    
    //欠货量
    @Transient
    private Integer debtNum;
    
    //主图，显示第一张图片使用
    @Transient
    private String fileId;
    
    //批量上货标记字段
    @Transient
    private String standard;
    
    @Transient
    private String property;
    
    @Transient
    private Double salePrice;
    
    @Transient
    private Double costPrice;
    
    @Transient
    private Double combinationPrice;
    
    @Transient
    private String salePrices;
    
    @Transient
    private String costPrices;
    
    @Transient
    private String collocationNos;
    
    @Transient
    private String propertyNameFirsts;
    
    @Transient
    private String propertyNameSeconds;
    
    @Transient
    private String standNameFirst;
    
    @Transient
    private String standNameSecond;
    
    @Transient
    private List<Picture> pictures;
    
    @Transient
    private Double purchasePrice;
    
    //条形码
    @Column(name="shapeCode")
    private String shapeCode;
    
	public Double getCombinationPrice() {
		return combinationPrice;
	}

	public void setCombinationPrice(Double combinationPrice) {
		this.combinationPrice = combinationPrice;
	}

	public String getShapeCode() {
		return shapeCode;
	}

	public void setShapeCode(String shapeCode) {
		this.shapeCode = shapeCode;
	}

	public Double getPurchasePrice() {
		return purchasePrice;
	}

	public void setPurchasePrice(Double purchasePrice) {
		this.purchasePrice = purchasePrice;
	}

	public Double getSalePrice() {
		return salePrice;
	}

	public void setSalePrice(Double salePrice) {
		this.salePrice = salePrice;
	}

	public String getStandard() {
		return standard;
	}

	public void setStandard(String standard) {
		this.standard = standard;
	}

	public String getProperty() {
		return property;
	}

	public void setProperty(String property) {
		this.property = property;
	}

	public Integer getDebtNum() {
		return debtNum;
	}

	public void setDebtNum(Integer debtNum) {
		this.debtNum = debtNum;
	}

	public Double getSalesVolume() {
		return salesVolume;
	}

	public void setSalesVolume(Double salesVolume) {
		this.salesVolume = salesVolume;
	}

	public Double getMinSale() {
		return minSale;
	}

	public void setMinSale(Double minSale) {
		this.minSale = minSale;
	}

	public Double getMaxSale() {
		return maxSale;
	}

	public void setMaxSale(Double maxSale) {
		this.maxSale = maxSale;
	}

	public Double getStockNum() {
		return stockNum;
	}

	public void setStockNum(Double stockNum) {
		this.stockNum = stockNum;
	}

	public String getCargoId() {
		return cargoId;
	}

	public void setCargoId(String cargoId) {
		this.cargoId = cargoId;
	}

	public String getCargoNo() {
		return cargoNo;
	}

	public void setCargoNo(String cargoNo) {
		this.cargoNo = cargoNo;
	}

	public String getCargoName() {
		return cargoName;
	}

	public void setCargoName(String cargoName) {
		this.cargoName = cargoName;
	}

	public String getDescribes() {
		return describes;
	}

	public void setDescribes(String describes) {
		this.describes = describes;
	}

	public String getCargoState() {
		return cargoState;
	}

	public void setCargoState(String cargoState) {
		this.cargoState = cargoState;
	}

	public String getCategoryName() {
		return categoryName;
	}

	public void setCategoryName(String categoryName) {
		this.categoryName = categoryName;
	}


	public String getShopId() {
		return shopId;
	}

	public void setShopId(String shopId) {
		this.shopId = shopId;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getCreateUserId() {
		return createUserId;
	}

	public void setCreateUserId(String createUserId) {
		this.createUserId = createUserId;
	}

	public String getCreateUserName() {
		return createUserName;
	}

	public void setCreateUserName(String createUserName) {
		this.createUserName = createUserName;
	}

	public Date getModifyDate() {
		return modifyDate;
	}

	public void setModifyDate(Date modifyDate) {
		this.modifyDate = modifyDate;
	}

	public String getModifyUserId() {
		return modifyUserId;
	}

	public void setModifyUserId(String modifyUserId) {
		this.modifyUserId = modifyUserId;
	}

	public String getModifyUserName() {
		return modifyUserName;
	}

	public void setModifyUserName(String modifyUserName) {
		this.modifyUserName = modifyUserName;
	}

	public Integer getDeleteMark() {
		return deleteMark;
	}

	public void setDeleteMark(Integer deleteMark) {
		this.deleteMark = deleteMark;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public String getIsStockWarning() {
		return isStockWarning;
	}

	public void setIsStockWarning(String isStockWarning) {
		this.isStockWarning = isStockWarning;
	}

	public Integer getLowSafetyStock() {
		return lowSafetyStock;
	}

	public void setLowSafetyStock(Integer lowSafetyStock) {
		this.lowSafetyStock = lowSafetyStock;
	}

	public Integer getHeightSafetyStock() {
		return heightSafetyStock;
	}

	public void setHeightSafetyStock(Integer heightSafetyStock) {
		this.heightSafetyStock = heightSafetyStock;
	}

	public String getIsHideSalePrice() {
		return isHideSalePrice;
	}

	public void setIsHideSalePrice(String isHideSalePrice) {
		this.isHideSalePrice = isHideSalePrice;
	}

	public String getIsHideStock() {
		return isHideStock;
	}

	public void setIsHideStock(String isHideStock) {
		this.isHideStock = isHideStock;
	}

	public String getIsHideSaleVolume() {
		return isHideSaleVolume;
	}

	public void setIsHideSaleVolume(String isHideSaleVolume) {
		this.isHideSaleVolume = isHideSaleVolume;
	}

	public Double getCostPrice() {
		return costPrice;
	}

	public void setCostPrice(Double costPrice) {
		this.costPrice = costPrice;
	}

	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	public List<Picture> getPictures() {
		return pictures;
	}

	public void setPictures(List<Picture> pictures) {
		this.pictures = pictures;
	}

	public String getSalePrices() {
		return salePrices;
	}

	public void setSalePrices(String salePrices) {
		this.salePrices = salePrices;
	}

	public String getCostPrices() {
		return costPrices;
	}

	public void setCostPrices(String costPrices) {
		this.costPrices = costPrices;
	}

	public String getCollocationNos() {
		return collocationNos;
	}

	public void setCollocationNos(String collocationNos) {
		this.collocationNos = collocationNos;
	}

	public String getPropertyNameFirsts() {
		return propertyNameFirsts;
	}

	public void setPropertyNameFirsts(String propertyNameFirsts) {
		this.propertyNameFirsts = propertyNameFirsts;
	}

	public String getPropertyNameSeconds() {
		return propertyNameSeconds;
	}

	public void setPropertyNameSeconds(String propertyNameSeconds) {
		this.propertyNameSeconds = propertyNameSeconds;
	}

	public String getStandNameFirst() {
		return standNameFirst;
	}

	public void setStandNameFirst(String standNameFirst) {
		this.standNameFirst = standNameFirst;
	}

	public String getStandNameSecond() {
		return standNameSecond;
	}

	public void setStandNameSecond(String standNameSecond) {
		this.standNameSecond = standNameSecond;
	}

	public String getFileId() {
		return fileId;
	}

	public void setFileId(String fileId) {
		this.fileId = fileId;
	}


	public String getViceFirstUnit() {
		return viceFirstUnit;
	}

	public void setViceFirstUnit(String viceFirstUnit) {
		this.viceFirstUnit = viceFirstUnit;
	}

	public String getViceSecondUnit() {
		return viceSecondUnit;
	}

	public void setViceSecondUnit(String viceSecondUnit) {
		this.viceSecondUnit = viceSecondUnit;
	}
	
	 public Double getFirstRatio() {
			return firstRatio;
		}

	public void setFirstRatio(Double firstRatio) {
		this.firstRatio = firstRatio;
	}

	public Double getSecondRatio() {
		return secondRatio;
	}

	public void setSecondRatio(Double secondRatio) {
		this.secondRatio = secondRatio;
	}

	public String getCargoType() {
		return cargoType;
	}

	public void setCargoType(String cargoType) {
		this.cargoType = cargoType;
	}

	public Double getSalesAmount() {
		return salesAmount;
	}

	public void setSalesAmount(Double salesAmount) {
		this.salesAmount = salesAmount;
	}

	public String getCustomerTel() {
		return customerTel;
	}

	public void setCustomerTel(String customerTel) {
		this.customerTel = customerTel;
	}

	public String getCustomerName() {
		return customerName;
	}

	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}
}
